<?php

   header('content-type:text/html;charset:utf-8');
   $cont = new mysqli('localhost:3306','root','root');
   if($cont->connect_err>0){
      die('数据库登录失败'.$cont->connect_errno);
   }
   $cont->query('set names utf-8');
   $select = $cont->select_db('h5_2206');
   if(!$select){
      die('数据库连接失败'.$cont->error);
   }
   // $res = $cont->query('select * from users');
   // $arr =[];
   // while($row = $res->fetch_assoc()){
   //    array_push($arr,$row);
   // }
   // $json = json_encode($arr);
   // var_dump($json);



   // $row = $res->fetch_assoc();
   // $json = json_encode($row);
   // var_dump($json);

?>